package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

//培训学员报名
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_train_people")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrainPeopleModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String city;//城市
    private String name;//姓名
    private Integer specialityId;//专业id
    private Integer trainId;//培训机构id
    private String phone;//手机号
    private Integer trainType;//培训类型 1创业培训  2技能培训
    private String openId;//微信用户唯一id

    @TableField(exist = false)
    private String specialityText;//专业名称
    @TableField(exist = false)
    private String trainTypeText;//培训类型 1创业培训  2技能培训
    @TableField(exist = false)
    private String trainText;//学校名称

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
